<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">

</head>

<body>

<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="float: left;height:34px;line-height:34px;">文章标题：</div>
            <div style="float: left;margin-right: 10px">
                <input type="text" class="form-control" v-model="q.title" @keyup.enter="query" placeholder="请输入内容">
            </div>
            <a class="btn btn-primary" @click="query">搜索</a>
			<#if shiro.hasPermission("sys:article:save")>
            <a class="btn btn-primary" @click="add">&nbsp;新增文章</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <form class="form-horizontal">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span style="color: red">*</span>页面路径</div>
                            <div class="col-sm-10" style="width: 260px;">
                                <input type="text" class="form-control"  placeholder="页面路径">
                            </div>
                            <a class="btn btn-primary" @click="query">复制</a>
                        </div>

                    </div>
                    <div class="modal-body">
                        <div style="padding: 20px 0;margin: 0 30px;margin-left: 100px;">
                            <div style="display: table-cell!important;padding-right: 15px;">
                                <img width="132" height="155"></img>
                            </div>
                            <div style="display: table-cell!important;font-size: 14px;color: #4c4948;line-height: 1!important;;">
                                <p style="margin-bottom: 5px;margin: 0 0 10px;">扫码进入</p>
                                <p style="margin: 0!important;margin: 0 0 10px;"></p>
                            </div>
                        </div>
                        <div style="padding: 20px 0;margin: 0 30px;border-top: 1px solid #eaeaea;">
                            <div style="margin-left: 80px;">
                                <button type="button"  class="btn btn-primary" style="background-color: #f07065!important;color: #fff;border: none;" data-dismiss="modal" @click="">下载二维码</button>
                                <button type="button" id="btn_submit" class="btn btn-primary" style="margin-left: 200px;" data-dismiss="modal" @click="saveOrUpdate">确认</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label"><span style="color: red">*</span>文章标题</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="article.articlename" placeholder="文章标题"/>
                        </div>
                    </div>

											                    <div class="form-group">
                        <div class="col-sm-2 control-label"><span style="color: red">*</span>文章内容</div>
                        <div class="col-sm-10">
                            <script type='text/plain' id='myEditor' style='width:1000px;height:340px;'></script>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<script>
        var ue = UE.getEditor('myEditor');
</script>

<script src="${request.contextPath}/statics/js/modules/sys/w.js?_${.now?long}"></script>


</body>
</html>